namespace ScrumSprintMonitor.ConfigEditor.Converters
{
	#region #using Directives

	using System;
	using System.Globalization;
	using System.Windows.Data;

	#endregion

	public class NegatedValueConverter : IValueConverter
	{
		#region IValueConverter Members

		public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
		{
			if (value != null)
			{
				bool val = (bool) value;

				return !val;
			}

			return null;
		}

		public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
		{
			if (value != null)
			{
				bool val = (bool) value;

				return !val;
			}

			return null;
		}

		#endregion
	}
}